package cn.touna.jss.modules.custom.loan.enums;

import cn.touna.risk.api.domain.ResponseService;

/**
 * Created by wuwc on 2017/9/1.
 */
public enum LoanEnum implements ResponseService {

    LOAN_DATA_ERROR("3100", "无效多头借贷数据"),;

    private String errorCode;
    private String errorDesc;

    private LoanEnum(String returnCode, String returnMsg) {
        this.errorCode = returnCode;
        this.errorDesc = returnMsg;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public String getErrorDesc() {
        return this.errorDesc;
    }

    public String getResponseCode() {
        return this.errorCode;
    }

    public String getResponseMessage() {
        return this.errorDesc;
    }

    public boolean equals(String errorCode) {
        return this.errorCode.equals(errorCode);
    }
}

